package com.ruoyi.quartz.task;

import com.ruoyi.wechat.service.SendTemplateMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zyj
 * @date 2022-08-22 20:09
 */
@Component("weChatTask")
public class WeChatTask {

    @Autowired
    private SendTemplateMsgService sendTemplateMsgService;

    public void sendTemplateMsg(String time){
        sendTemplateMsgService.sendAllTemplateMsg(time);
    }
}
